home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 781 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: peer-news.britain.eu.net!demon!paget.demon.co.uk
  2. From: jon@paget.demon.co.uk (Jon March)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Macros in C (Disadvantages?)
  5. Date: Tue, 09 Jan 1996 07:49:33 GMT
  6. Message-ID: <821173834.5944@paget.demon.co.uk>
  7. References: <4cjluh$gva@kernighan.cs.umass.edu>
  8. Reply-To: jon@paget.demon.co.uk
  9. NNTP-Posting-Host: paget.demon.co.uk
  10. X-NNTP-Posting-Host: paget.demon.co.uk
  11. X-Newsreader: Forte Free Agent v0.55
  12.  
  13. ramanath@freya.cs.umass.edu (Kumaresan Ramanathan) wrote:
  14.  
  15. >  I have been thinking about writing a general purpose code generator as
  16. >freeware to provide a powerful mechanism for creating user defined
  17. >extensions to C.
  18. [snip]
  19. >So my query is specifically:
  20. >  What can code generators (written from scratch) do that macros cannot.
  21. >  Have I missed any disadvantages of macros (for the purpose of extending
  22. >the C language) ?
  23. [snip]
  24.  
  25. What do you want a code generator to do?
  26. I guess that you want minor insertions eg:
  27. "start
  28. for ( ; ; )
  29. {
  30. }
  31. end"
  32.  
  33. Or is it something more complex?
  34.  
  35. -- Jon March
  36. -- jon@paget.demon.co.uk
  37. -- "Watch the rocks, Mav!" "What f
  38.  
  39.